﻿
using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class ChoiceDairu : Message
    {
        public static int TYPE = 7;
        public static int ID = 160;
        private bool mins;
        private int id;
        private int index;
        public string roomID { get; set; }

        public bool Mins
        {
            get
            {
                return mins;
            }
            set
            {
                mins = value;
            }
        }

        public int Id
        {
            get
            {
                return id;
            }

            set
            {
                id = value;
            }
        }

        public int Index
        {
            get
            {
                return index;
            }

            set
            {
                index = value;
            }
        }

        public static ChoiceDairu Create(bool n,int d,int _index, string roomId) {
            ChoiceDairu dd = new login.ChoiceDairu();
            dd.mins = n;
            dd.id = d;
            dd.index = _index;
            dd.roomID = roomId;
            return dd;
        }
        public void decode(core.io.Input _in)
        {

        }
        public void encode(Output _out)
        {
            _out.writeBoolean(mins);
            _out.writeInt(id);
            _out.writeInt(index);
            _out.writeString(roomID);
        }
        public int getMessageId()
        {
            return ID;
        }
        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
